package com.atguigu.feign;

import com.atguigu.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * UserClient
 *
 * @Author: 马伟奇
 * @CreateTime: 2021-03-05
 * @Description:
 */
@FeignClient(name = "user-provider",fallback=UserClientFallback.class)
public interface UserClient {

    @RequestMapping("/user/find/{id}")
    public User findUserById(@PathVariable(value = "id") Integer id);
}

